package com.yx.system.dao;

import com.yx.system.entity.TdClassification;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 二级分类
 */
@Mapper
@Repository
public interface TdClassificationMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(TdClassification record);

    int insertSelective(TdClassification record);

    TdClassification selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TdClassification record);

    int updateByPrimaryKey(TdClassification record);

    /**
     * 查询书籍列表
     */
    List<TdClassification> queryList(Map<String, Object> map);

    /**
     * 查询总数
     */
    int queryTotal(Map<String, Object> map);
}